package com.gyc.service.impl;

import com.gyc.dao.UserMapper;
import com.gyc.entity.User;
import com.gyc.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author gyc
 * @date 2017/12/23
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User findById(Integer id) {
        return userMapper.findById(id);
    }

    @Override
    public int insert(User user) {
        return 0;
    }
}
